<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <title>病例文章管理</title>
    <?php require 'templates/common/head.html'; ?>
</head>
<body>


<div class="container-fluid">
    <?php require 'templates/common/nav.html'; ?>
    <div class="panel panel-primary">
        <div class="panel-heading text-center"><h3 class="panel-title">病例文章详情</h3></div>
        <div class="panel-body">
            <div >
                <form action="" method="get">
                    <input type="hidden" name="m" value="case_manage" />
                    文章标题:<input type="text" name="title" value="<?=$title?>">
                    <input type="submit" value="搜索">

                </form>
                <div class="panel-heading text-right" >
                    <a style="float: left;" href="index.php?m=case_manage&a=release_case" type="button" class="btn btn-primary">发布病例</a>
                    <div style="margin-right: 10%;">
                        <form action="index.php?m=case_manage&a=export_case" method="post">
                        <input type="submit" name="daochu"  class="btn btn-default btn-success " value="导出文章"/>
                        </form>
                    </div>
                </div>

            </div>

        </div>
        <div class="panel-body">
            <div class="panel-group"   id="accordion" role="tablist" aria-multiselectable="true">
                <div class="panel panel-default" >
                    <div class="panel-heading" style="background-color:#d5d5d5" >
                        <div class="row">
                            <div class="text-justify col-sm-12" style="width:100%;">
                                <div class="col-sm-3"><b  >病例文章主题</b></div>
                                <div class="col-sm-1"><b  >作者</b></div>
                                <div class="col-sm-1"><b  >阅读量</b></div>
                                <div class="col-sm-1"><b  >评论人数</b></div>
                                <div class="col-sm-1"><b  >阅读人数</b></div>
                                <div class="col-sm-3"><b  >添加时间</b></div>
                                <div class="col-sm-2"><b  >操作</b></div>

                            </div>
                        </div>
                    </div>
                </div>
                <div class="panel panel-default">
                    <?php foreach($case as $key =>$value):?>
                    <div class="panel-heading"  style=" <?php if($key%2==0){echo 'background-color:#DFF0D8;';}else{ echo 'border-top: solid 2px #ffffff;';}?>">
                    <div class="row">
                        <div class="col-xs-4 text-justify" style="width:100%;">
                            <div class="col-sm-3"><span><?= $value['title']?></span></div>
                            <div class="col-sm-1"><span><?= $value['username']?></span></div>
                            <div class="col-sm-1"><span><?= $value['浏览次数']?></span></div>
                            <div class="col-sm-1"><span><?= $value['评论次数']?></span></div>
                            <div class="col-sm-1"><span><?= $value['num']?></span></div>
                            <div class="col-sm-3"><span><?= $value['添加时间']?></span></div>
                            <div class="col-sm-2">
                                <a class="btn btn-primary btn-xs" href="index.php?m=case_manage&a=release_case&id=<?php echo $value['id']?>" >修改</a>
                            </div>

                        </div>
                    </div>
                </div>
                <?php endforeach; ?>
            </div>

        </div>
            <div><?= $page->showpage();?></div>
    </div>
</div>
</div>
</div>
<?php require 'templates/common/foot.html'; ?>
</body>
</html>
